package com.seven.commons;

/**
 * @author sevenDay
 * @classname AbstractYpzdwException
 * @description: 描述TODO
 * @date 2017/12/13
 */
public  abstract class AbstractSevenException extends RuntimeException {

    private Integer code;

    private String  msg ;

    public AbstractSevenException(EnumInterface resultEnum) {
        super((resultEnum.getMsg()));
        this.code = resultEnum.getCode();
        this.msg =  resultEnum.getMsg();
    }
    public AbstractSevenException(String msg, int code) {
        super((msg));
        this.code = code;
        this.msg =  msg;
    }
    public AbstractSevenException(int  code, String  msg) {
      this(msg,code);
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public  void setCode(Integer code){this.code =  code;};

    public  void setMsg(String msg){this.msg = msg;};

}
